import request from '@/utils/request'
// 用户登录接口
export function loginFn(data) {
  return request({
    url: '/user-service/user/login',
    method: 'post',
    data
  })
}
// 运维运营工单// 工单搜索
export const devops = (params) => {
  return request.get(`/task-service/task/search`, { params })
}
// 工单详情
export const detail = (taskId) => {
  return request.get(`/task-service/task/taskInfo/${taskId}`)
}
// 创建工单
export const addnum = (data) => {
  console.log(data)
  return request.post('/task-service/task/create', data)
}
// 根据工单编号获取维修人员
export const person = (innerCode) => {
  return request.get(`user-service/user/repairerList/${innerCode}`)
}
// 获取所有工单类型
export const getList = (data) => {
  return request.get('/task-service/taskType/list', data)
}

